<template>
  <div>
    <van-nav-bar
      title="人气推荐"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <hotsale :hotlist="hotlist"></hotsale>
  </div>
</template>

<script>
import hotsale from '../home/hotsale';
export default {
    components:{hotsale},
  data() {
    return {
        hotlist:[],
    };
  },
  created() {},
  mounted() {
      this.gethotlist();
  },
  methods: {
      // 人气推荐数据
    gethotlist(){
      this.$axios.get('https://api.it120.cc/small4/shop/goods/list').then((res)=>{
        console.log(res)
        this.hotlist = res.data;
      })
    }
  },
  computed: {},
};
</script>

<style scoped></style>
